package com.esri.core.map;

/* loaded from: classes.dex */
public enum ResamplingProcessType {
    RSP_UNKNOWN("RSP_Unknown", -1),
    RSP_BILINEAR_INTERPOLATION("RSP_BilinearInterpolation", 1),
    RSP_CUBIC_CONVOLUTION("RSP_CubicConvolution", 2),
    RSP_MAJORITY("RSP_Majority", 3),
    RSP_Nearest_Neighbor("RSP_NearestNeighbor", 0);
    
    private final String a;
    private final int b;

    ResamplingProcessType(String str, int i) {
        this.a = str;
        this.b = i;
    }

    @Override // java.lang.Enum
    public String toString() {
        return this.a;
    }

    public int toInt() {
        return this.b;
    }

    public static ResamplingProcessType fromValue(int i) {
        ResamplingProcessType[] values;
        for (ResamplingProcessType resamplingProcessType : values()) {
            if (i == resamplingProcessType.b) {
                return resamplingProcessType;
            }
        }
        return null;
    }

    public static ResamplingProcessType fromString(String str) {
        ResamplingProcessType[] values;
        if (str != null) {
            for (ResamplingProcessType resamplingProcessType : values()) {
                if (str.equals(resamplingProcessType.a)) {
                    return resamplingProcessType;
                }
            }
        }
        return null;
    }
}
